import { post} from '@/utils/http';

enum Api {
    SystemList = '/userAuth',
    SetAuth = '/setAuth'
}


function getUserAuthApi(pageAuthority:string): Promise<any> {
    return post(Api.SystemList,{pageAuthority});
}

function setAuthApi(data:any): Promise<any> {
    return post(Api.SetAuth,data);
}

export {
    getUserAuthApi,
    setAuthApi
}
